import { createRouter, createWebHistory } from 'vue-router';
import Home from '../views/Home.vue';
import Login from '../views/Login.vue';
import Register from '../views/Register.vue';
import Blog from '../views/Blog.vue';
import Projects from '../views/Projects.vue';
import Milestones from '../views/Milestones.vue';

const routes = [
  {
    path: '/',
    name: 'Home',
    component: Home
  },
  {
    path: '/login',
    name: 'Login',
    component: Login
  },
  {
    path: '/register',
    name: 'Register',
    component: Register
  },
  {
    path: '/blog',
    name: 'Blog',
    component: Blog
  },
  {
    path: '/projects',
    name: 'Projects',
    component: Projects
  },
  {
    path: '/milestones',
    name: 'Milestones',
    component: Milestones
  }
];

const router = createRouter({
  history: createWebHistory(),
  routes
});

export default router;